<?php echo $this->Session->flash(); ?>
<?php
echo $form->create('PropertyRequirement');
echo $form->input("PropertyRequirement.id");
?>
<h1><?php echo $this->data['Property']['codigo'] . " " . $this->data['Property']['nombre'] ?></h1>
<br>

<h1><?php echo $this->data['Requirement']['texto'] ?></h1>
<br>
<table border="1" width="100%" >
    <tbody>
        <?php foreach ($this->data['RequirementFault']as $con):
            ?>
            <tr>
                <td width="80%" style="text-align: justify" colspan="2"><label><?php echo $con['nombre'] ?></label></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php
echo $form->input("PropertyRequirement.cal_subsanacion", array('id' => 'calificacion', 'label' => 'Calificación', 'options' => array(1 => 'Subsanó Cumple', 2 => 'Subsanó No Cumple', 3 => 'No Subsanó')));
echo $form->input("PropertyRequirement.con_subsanacion", array('label' => 'Concepto'));
?>
<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<?php
if ($est == 0)
    if ($this->Session->read('estado') == 0)
        echo $ajax->submit('Guardar', array('url' => array('controller' => 'PropertyRequirements', 'action' => 'edit_correction', $this->data['PropertyRequirement']['id']), 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'));
echo $form->end();

// echo $ajax->link("REGRESAR",array('controller'=>'PropertyRequirements', "action"=>"index",$this->data['PropertyRequirement']['Property_id']),array('update'=>'content','complete'=>'cargar()'))
?>
